Optimal. Leaf size=120 \[ \frac{(e x)^{m+1} (A b-a B) (b c-a d) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{b x^n}{a}\right )}{a b^2 e (m+1)}+\frac{(e x)^{m+1} (-a B d+A b d+b B c)}{b^2 e (m+1)}+\frac{B d x^{n+1} (e x)^m}{b (m+n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.119727, antiderivative size = 120, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.138, Rules used = {570, 20, 30, 364} \[ \frac{(e x)^{m+1} (A b-a B) (b c-a d) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{b x^n}{a}\right )}{a b^2 e (m+1)}+\frac{(e x)^{m+1} (-a B d+A b d+b B c)}{b^2 e (m+1)}+\frac{B d x^{n+1} (e x)^m}{b (m+n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 570
Rule 20
Rule 30
Rule 364
Rubi steps
\begin{align*} \int \frac{(e x)^m \left (A+B x^n\right ) \left (c+d x^n\right )}{a+b x^n} \, dx &=\int \left (\frac{(b B c+A b d-a B d) (e x)^m}{b^2}+\frac{B d x^n (e x)^m}{b}+\frac{(A b-a B) (b c-a d) (e x)^m}{b^2 \left (a+b x^n\right )}\right ) \, dx\\ &=\frac{(b B c+A b d-a B d) (e x)^{1+m}}{b^2 e (1+m)}+\frac{(B d) \int x^n (e x)^m \, dx}{b}+\frac{((A b-a B) (b c-a d)) \int \frac{(e x)^m}{a+b x^n} \, dx}{b^2}\\ &=\frac{(b B c+A b d-a B d) (e x)^{1+m}}{b^2 e (1+m)}+\frac{(A b-a B) (b c-a d) (e x)^{1+m} \, _2F_1\left (1,\frac{1+m}{n};\frac{1+m+n}{n};-\frac{b x^n}{a}\right )}{a b^2 e (1+m)}+\frac{\left (B d x^{-m} (e x)^m\right ) \int x^{m+n} \, dx}{b}\\ &=\frac{B d x^{1+n} (e x)^m}{b (1+m+n)}+\frac{(b B c+A b d-a B d) (e x)^{1+m}}{b^2 e (1+m)}+\frac{(A b-a B) (b c-a d) (e x)^{1+m} \, _2F_1\left (1,\frac{1+m}{n};\frac{1+m+n}{n};-\frac{b x^n}{a}\right )}{a b^2 e (1+m)}\\ \end{align*}
Mathematica [A] time = 0.150969, size = 95, normalized size = 0.79 \[ \frac{x (e x)^m \left (\frac{(a B-A b) (a d-b c) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{b x^n}{a}\right )}{a (m+1)}+\frac{-a B d+A b d+b B c}{m+1}+\frac{b B d x^n}{m+n+1}\right )}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.397, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( ex \right ) ^{m} \left ( A+B{x}^{n} \right ) \left ( c+d{x}^{n} \right ) }{a+b{x}^{n}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\left ({\left (b^{2} c e^{m} - a b d e^{m}\right )} A -{\left (a b c e^{m} - a^{2} d e^{m}\right )} B\right )} \int \frac{x^{m}}{b^{3} x^{n} + a b^{2}}\,{d x} + \frac{B b d e^{m}{\left (m + 1\right )} x e^{\left (m \log \left (x\right ) + n \log \left (x\right )\right )} +{\left (A b d e^{m}{\left (m + n + 1\right )} +{\left (b c e^{m}{\left (m + n + 1\right )} - a d e^{m}{\left (m + n + 1\right )}\right )} B\right )} x x^{m}}{{\left (m^{2} + m{\left (n + 2\right )} + n + 1\right )} b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (B d x^{2 \, n} + A c +{\left (B c + A d\right )} x^{n}\right )} \left (e x\right )^{m}}{b x^{n} + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 10.6152, size = 666, normalized size = 5.55 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B x^{n} + A\right )}{\left (d x^{n} + c\right )} \left (e x\right )^{m}}{b x^{n} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]